home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
utils
/
autocopy.arc
/
AUTOCOPY.DOC
next >
Wrap
Text File
|
1987-03-13
|
2KB
|
42 lines
This program copies files from one disk to another at run time. It uses F_READ
and F_WRITE in Personal Pascal to copy the files quickly. To use this program
place this file and the file 'AUTOCOPY.INF' together in the same folder. The
format for the info file is a follow:
Path_name of source, one or more spaces, Path_name of destination.
For example, to use my pascal I setup a 312K ramdisk as drive C: and then copy
the important file to it and run them from there, this greatly improves my
compile and link times by getting the files from ramdisk. The info file I use
is as follows:
A:\PASCAL\COMPILER.PRG C:\COMPILER.PRG
A:\PASCAL\EDITOR.PRG C:\EDITOR.PRG
A:\PASCAL\LINKER.PRG C:\LINKER.PRG
A:\PASCAL\PASCAL.PRG C:\PASCAL.PRG
A:\PASCAL\PASCAL.RSC C:\PASCAL.RSC
A:\PASCAL\PASCAL.INF C:\PASCAL.INF
A:\PASCAL\ERRORS.TXT C:\ERRORS.TXT
A:\PASCAL\PASGEM C:\PASGEM
A:\PASCAL\PASLIB C:\PASLIB
A:\PASCAL\GEMCONST.PAS C:\GEMCONST.PAS
A:\PASCAL\GEMSUBS.PAS C:\GEMSUBS.PAS
A:\PASCAL\GEMTYPE.PAS C:\GEMTYPE.PAS
A:\PASCAL\JOYSTICK.PAS C:\JOYSTICK.PAS
A:\PASCAL\JOYSUBS.O C:\JOYSUBS.O
I have also included my joystick routines in this archive, you will need the
object file 'JOYSUBS.O' from the archive 'JOYSTICK.ARC' on GEnie. See those
instructions for use of its routines. The include file 'JOYSTICK.PAS'
contains routines to check the fire button, return the change in the
horizontal and verticle directions. They are as follows:
FUNCTION STRIG(WHICH_STICK: INTEGER): BOOLEAN;
returns true if the button on the stick is pressed, false otherwise
FUNCTION H_STICK(WHICH_STICK: INTEGER): INTEGER;
return -1 if the stick is left, +1 if the stick is right, and 0 otherwise
FUNCTION V_STICK(WHICH_STICK: INTEGER): INTEGER;
return -1 if the stick is up, +1 if the stick is down, and 0 otherwise